package main

import "fmt"

func main() {

	nums := [10]int{1, 2, 3, 4, 5, 6, 7, 8, 9, 10}
	var p = &nums
	fmt.Println(*p)
	fmt.Println(p)
	fmt.Println((*p)[3])
	fmt.Println(p[3])

	// 将数组指针作为参数传递
	modifyArrayPointer(p)
	fmt.Println(nums)

}

func modifyArrayPointer(p *[10]int) {
	p[3] = 40
}
